<?php

use yii\db\Migration;

class m170506_012447_alter_isuser_info extends Migration
{
    public function up()
    {
        $this->addColumn('{{%isuser_info}}', 'operation_type', $this->string(10).' default \'all\' comment \'是否可以发卡或券（all/card/coupon）\'');
    }

    public function down()
    {
        $this->dropColumn('{{%isuser_info}}', 'operation_type');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
